package cn.cmeizu.spring6.validator.two;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;

/**
 * @author cmeizu
 * @date 2023/2/19 18:52
 */
@Configuration
@ComponentScan("cn.cmeizu.spring6.validator.two")
public class ValidationConfig {

  @Bean
  public LocalValidatorFactoryBean getLocalValidatorFactoryBean() {
    return new LocalValidatorFactoryBean();
  }
}
